export function getLogin(userName,userPassword){
	return new Promise(function(resolve,reject){
		uni.request({
			url: 'user/login',
			data: {
				userName:userName,
				userPassword:userPassword
			},
			method:"POST",
			dataType:""
			success(res) {
				resolve(res.data);
			},
			fail(err){
				reject(err)
			}
		})
	})
}

export function registerLogin(baseFormData){
	return new Promise(function(resolve,reject){
		uni.request({
			url:"",
			data:{
				baseFormData
			},
			success(res) {
				resolve(res.data);
			},
			fail(err){
				reject(err)
			}
		})
	})
}